﻿using QuanLyBanHang.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QuanLyBanHang.DTO;
using QuanLyBanHang.DAL;
using System.Data;
using System.Data.SqlClient;
namespace QuanLyBanHang.BLL
{
   public class SanPhamBLL
    {

       public static DataTable LayTatCaSanPham(SanPhamcs sp)
       {
           return SanPhamDAL.LayTatCaThongTinSanPham(sp);
       }
       public static DataTable LaySanPhamTheoDK(string dk)
       {
           return SanPhamDAL.LaySanPhamTheoDK(dk);
       }
        public static int ThemSanPham(SanPhamcs sp)
       {
           return SanPhamDAL.ThemSanPham(sp) ;
       }
        public static int XoaSanPham(SanPhamcs sp)
        {
            return SanPhamDAL.XoaSanPham(sp);
        }
        public static int SuaSanPham(SanPhamcs sp)
        {
            return SanPhamDAL.SuaSanPham(sp);
        }
    }
}
